<template>
  <div class='xtx-loading'>
    <div class="box">
      <i></i>
      <i></i>
    </div>
  </div>
</template>

<script>
export default {
  name: 'xtx-loading'
}
</script>

<style scoped lang='less'>
.xtx-loading {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 99;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.8);
  display: flex;
  justify-content: space-around;
  align-items: center;
  .box {
    position: relative;
    animation: rotate 1s infinite;
    width: 60px;
    height: 60px;
    i {
      border:2px solid @xtxColor;
      width: 60px;
      height: 30px;
      border-top-right-radius: 60px;
      border-top-left-radius: 60px;
      border-bottom: 0;
      position: absolute;
      left: 0;
      top: 0;
      &:first-child {
        transform-origin: center bottom;
        transform: rotate(-90deg);
      }
  }
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg)
  }
  to {
    transform: rotate(360deg)
  }
}
</style>
